﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Gwca.DotNet;


namespace GwcaDemo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            Gw.Cgui = this.Handle;
        }

        protected override void WndProc(ref Message m)
        {
            if (m.HWnd == this.Handle)  //** Process messages sent to our window
            {
                switch (m.Msg)
                {
                    case 0x500:
                        Gw.CbVar[0] = m.WParam.ToInt32();
                        Gw.CbVar[1] = m.LParam.ToInt32();
                        break;
                    default:
                        break;
                }
            }
            base.WndProc(ref m);
        }
    }
}
